// #ifndef VUE3
// 非vue3相关代码
import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false
App.mpType = 'app'

const app = new Vue({
	...App
})
app.$mount()
// #endif



// #ifdef VUE3
// vue3代码在这写
import {
	createSSRApp
} from 'vue'
import App from './App.vue'
import share from '@/utils/shareCommon.js'
import mixins from '@/mixins/common.js'
import uvUI from '@/uni_modules/uv-ui-tools'

import Vuex from "vuex";
import store from '/store';

export function createApp() {
	const app = createSSRApp(App)
	app.use(uvUI);
	app.use(store)
	app.mixin(share)
	app.mixin(mixins)
	return {
		Vuex,
		app
	}
}
// #endif